﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="IUserRepository.cs" company="">
//   Copyright (c) 2010/2011 All Right Reserved
// </copyright>
// <summary>
//   Contains IUserRepository class declaration.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace iBuproModel.Repositories.Interfaces
{
    using System.Collections.Generic;

    /// <summary>
    /// Interface for user repository.
    /// </summary>
    public interface IUserRepository : IGenericRepository<User>
    {
        User GetUserByUserName(string username);
        IEnumerable<Role> GetRolesForUser(User user);
        bool IsUserInRole(User user, string rolename);
        void UpdateRoleList(User user, IEnumerable<int> ids);
    }
}
